package com.heima.pojo.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author 赵超
 */
@Data
public class UserVo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long roleId;

    private String roleCode;

    private String userName;

    private String loginName;

    @JsonIgnore
    private String password;

    @JsonIgnore
    private String secret;

    private String mobile;

    private Integer regionId;

    private String regionName;

    private String image;

    private Boolean status;

    private RoleVo role;

}
